# ===================================================================================================================== # ===================================================================================================================== # ===================================================================================================================== # Installation git clone https://github.com/p4lang/p4factory.git cd p4factory git submodule update --init --recursive # If you will have errors then ssh-add your private key from github and repeat command sudo ./install_depth.sh ./autogen.sh ./configure # Makes virtual eth sudo p4factory/tools/veth_setup.sh cd ~/Desktop git clone https://github.com/p4lang/tutorials.git cd ~/Desktop git clone https://github.com/osrg/ryu.git sudo pip install ryu # ===================================================================================================================== # ===================================================================================================================== # ===================================================================================================================== cd targets/switch make bm-p4ofagent PLUGIN_OPENFLOW=1 cd targets/l2_switch make bm-p4ofagent PLUGIN_OPENFLOW=1 sudo ryu-manager --verbose ~/Desktop/ryu/ryu/app/simple_switch_13.py sudo python ~/Desktop/p4factory/mininet/openflow_l2.py --controller-ip 127.0.0.1 --cli # ===================================================================================================================== # ===================================================================================================================== # ===================================================================================================================== # If something cracked this commands will clear the os memory sudo mn -c ; sudo killall behavioral-model ; redis-cli FLUSHALL # ===================================================================================================================== # ===================================================================================================================== # ===================================================================================================================== # Other p4factory/tools/newtarget.py lvk_task sudo python ~/Desktop/p4factory/mininet/l2_demo.py --num-hosts 4 --behavioral-exe ~/Desktop/p4factory/targets/l2_switch/behavioral-model